From 29d7f93e381887844fafaa9ce7f3824237c18ffd Mon Sep 17 00:00:00 2001 From: Arjan Molenaar Date: Thu, 10 Nov 2022 22:20:07 +0100 Subject: [PATCH] Update Common Questions section on tree views Point users to GtkListView instead of the deprecated GtkTreeView. --- docs/reference/gtk/question_index.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/reference/gtk/question_index.md b/docs/reference/gtk/question_index.md index 13ab0ac3e2..aa0cbafff2 100644 --- a/docs/reference/gtk/question_index.md +++ b/docs/reference/gtk/question_index.md @@ -311,9 +311,11 @@ the question you have, this list is a good place to start. and the required formatting flexibility. If you want to display a large amount of data in a uniform way, your best - option is a [class@Gtk.TreeView] widget. See the [tree widget overview](#TreeWidget). - A list is just a tree with no branches, so the treeview widget is used for - lists as well. + option is a [class@Gtk.ListView] widget. The list view can have different + types of models: [class@Gtk.TreeListModel] can serve as a model for a tree + structure, while a simple [iface@Gio.ListModel] can be used for simple lists. + The section [List Widget Overview](section-list-widget.html) helps you get started. + It replaces [class@Gtk.TreeView], which has been deprecated since GTK 4.10. If you want to display a small amount of items, but need flexible formatting and widgetry inside the list, then you probably want to use a [class@Gtk.ListBox], -- 2.30.2